]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
shell_dbus_acquire_name: Don't leak the result
authorMatthias Clasen <mclasen@redhat.com>
Thu, 24 Sep 2015 17:17:36 +0000 (13:17 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 24 Sep 2015 17:33:47 +0000 (13:33 -0400)
The GVariant returned by g_dbus_proxy_call_sync must be
freed with g_variant_unref, to prevent a leak.

src/main.c

index fb0ea438293c908865940053e2cdb2a4cd565423..b33d4bfdc83415532e5e894f5063de90ca5860e7 100644 (file)
@@ -75,6 +75,7 @@ shell_dbus_acquire_name (GDBusProxy  *bus,
       exit (1);
     }
   g_variant_get (request_name_variant, "(u)", request_name_result);
+  g_variant_unref (request_name_variant);
 }
 
 static void